﻿namespace Acoris.Core.Input
{
    using System.Collections.Generic;
    using Windows.System;

    /// <summary>
    /// 表示一个快捷键
    /// </summary>
    public struct AccerlateKey:IEqualityComparer<AccerlateKey>
    {
        public VirtualKey Key { get; set; }
        public VirtualKeyModifiers Modifier { get; set; }

        public bool Equals(AccerlateKey x, AccerlateKey y)
        {
            throw new System.NotImplementedException();
        }

        public int GetHashCode(AccerlateKey obj)
        {
            throw new System.NotImplementedException();
        }

        #region Override

        public override bool Equals(object obj)
        {
            return base.Equals(obj);
        }

        public override int GetHashCode()
        {
            return (Key.GetHashCode() ^ Modifier.GetHashCode()) ^ base.GetHashCode();
        }

        public override string ToString()
        {
            return $"key:{Key},modifier:{Modifier}";
        }

        #endregion
    }
}
